<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
  <head>
    <title>test</title>
  </head>
  
  <body>
	test
	<button>test</button>
  	<script src="js/jquery.min.js"></script>
  	<script src="plugin/layui/layui.js"></script>
  	<script>
  		var user = [{username: "zkh", nickname: "紫竹飞雪",regdate: "2019-07-20 12:12:12"},
  		{username: "zkh11", nickname: "紫竹飞雪11",regdate: "2020-07-20 12:12:12"}];
  		$("button").click(function(){
  			$.post("${ctx}/index/testJSON", JSON.stringify(user), function(res){
  				console.log(res);
  			});
  		});
	</script>
  </body>
</html>
